##### My (demuredemeanor) muttrc sub crypto config
# Uses tabstop=4; shiftwidth=4 tabs; foldmarker={{{,}}};
# https://notabug.org/demure/dotfiles
# legacy repo http://github.com/demure/dotfiles
# vim:set syntax=muttrc:

set pgp_use_gpg_agent           = yes
set pgp_sign_as                 = 5FEC76218436521FE0B05D119A5C2AE96907C3D1
set pgp_self_encrypt            = yes
set pgp_default_key             = 061F408B84683AB36305F97B2C75CC3414602EB6
set pgp_autosign                = yes
set crypt_autosign              = yes
set crypt_replysign             = yes
set crypt_replyencrypt          = yes
set crypt_replysignencrypted    = yes
set crypt_verify_sig            = yes
set crypt_use_gpgme             = yes
set pgp_decode_command          = "gpg2 %?p?--passphrase-fd 0? --no-verbose --batch --output - %f"
set pgp_verify_command          = "gpg2 --no-verbose --batch --output - --verify %s %f"
set pgp_decrypt_command         = "gpg2 --no-verbose --batch --output - %f"
set pgp_sign_command            = "gpg2 --no-verbose --batch --output - --armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_clearsign_command       = "gpg2 --no-verbose --batch --output - --armor --textmode --clearsign %?a?-u %a? %f"
## Giving the full path fixes a pgpewrap not found issue
set pgp_encrypt_only_command    = "/usr/lib/neomutt/pgpewrap gpg2 --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust --encrypt-to 061F408B84683AB36305F97B2C75CC3414602EB6 -- -r %r -- %f"
set pgp_encrypt_sign_command    = "/usr/lib/neomutt/pgpewrap gpg2 --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust --encrypt-to 061F408B84683AB36305F97B2C75CC3414602EB6 -- -r %r -- %f"
set pgp_import_command          = "gpg2 --no-verbose --import -v %f"
set pgp_export_command          = "gpg2 --no-verbose --export --armor %r"
set pgp_verify_key_command      = "gpg2 --no-verbose --batch --fingerprint --check-sigs %r"
set pgp_list_pubring_command    = "gpg2 --no-verbose --batch --with-colons --list-keys %r"
set pgp_list_secring_command    = "gpg2 --no-verbose --batch --with-colons --list-secret-keys %r"
set pgp_good_sign               = "^gpg: Good signature from"
set pgp_timeout                 = 3600
